package com.pig.consume.client;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @author lizhiwei
 */
@Slf4j
public class TextClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) {
        log.info("receive:" + msg);
        String[] split = msg.split("&");
        ResultManager.put(split[0], split[1]);
    }
}